#ifndef _FNT_XFUNC_WIDGET_H_
#define _FNT_XFUNC_WIDGET_H_

#include <QToolButton>

struct XfuncWidgetPriv;
class XfuncWidget: public QToolButton {
	Q_OBJECT;
	friend struct XfuncWidgetPriv;
	XfuncWidgetPriv*const priv;
	private Q_SLOTS:
		void spin0Changed();
	void spin1Changed();
	void slider0Changed(int x);
	void slider1Changed(int x);
	void setRange();
	void resetRange();
Q_SIGNALS:
	void changed();
	public:
	XfuncWidget(QWidget* par);
	~XfuncWidget();

	void setPositions(double x0, double x1);
	std::pair<double, double> positions() const;
};

#endif
